
// 搜索条件
export const searchOption = [
    {
        name: '带班人',
        value: 'creatorName',
        type: 'input'
    },
    {
        name: '带班日期',
        value: 'createTime',
        type: 'dateRangeFormat',
        attr: {
            rangeFormat: ['fillStartTime', 'fillEndTime']
        }
    }
]

export const columns = [
    {
        title: '序号',
        width: 65,
        scopedSlots: { customRender: 'serial' },
    },
    {
        title: '分公司',
        width: 90,
        dataIndex: 'branchName',
    },
    {
        title: '所属项目',
        width: 180,
        dataIndex: 'projectName',
    },
    {
        title: '带班人',
        width: 100,
        dataIndex: 'creatorName',
    },
    {
        title: '带班日期',
        width: 120,
        dataIndex: 'shiftDate',
    },
    {
        title: '状态',
        width: 100,
        dataIndex: 'checkStatus',
        scopedSlots: { customRender: 'checkStatus' },
    },
    {
        title: '操作',
        dataIndex: 'action',
        width: 200,
        scopedSlots: { customRender: 'action' },
    },
]

